import { Global, Module } from '@nestjs/common';
import { LantUtil } from '../../utils/lant.util';
import { RegexUtil } from '../../utils/regex.util';
import { RedisLantService } from './services/redis-lant.service';
import { InitService } from './services/init.service';
import { UserModule } from '../user/user.module';
import { RoleModule } from '../role/role.module';
import { GuardModule } from '../guard/guard.module';
import { OrganizationModule } from '../organization/organization.module';

@Global()
@Module({
  imports: [UserModule, RoleModule, OrganizationModule, GuardModule],
  providers: [InitService, RedisLantService, LantUtil, RegexUtil],
  exports: [RedisLantService, LantUtil, RegexUtil]
})
export class CommonModule {}
